package com.hjf.ditubiaozhu;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.hjf.ditubiaozhu.base.BaseActivity;

public class MainActivity extends BaseActivity {

    private Button mBtn;

    private TextView mTv;


    @Override
    protected int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void init(Bundle savedInstanceState) {
        mBtn = findById(R.id.button);
        mTv = findById(R.id.hello_tv);
        mBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(mContext,MapActivity.class);
                mContext.startActivity(intent);
            }
        });
    }

    @Override
    protected void initToolBar() {

    }

}
